package com.nineclock.system.controller;

import com.nineclock.common.entity.UserInfo;
import com.nineclock.common.utils.CurrentUserHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloController {
    @GetMapping("/echo")
    public String echo(){
        UserInfo userInfo = CurrentUserHolder.get();
        System.out.println(userInfo);
        return "OK";
    }
}